From 27839f854a58d9dbc85efa1b5cd79f253880c701 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Jul 2025 19:50:45 +0200 Subject: [PATCH] ubusd: make txq_len field signed When enqueueing a partial message, the length is initially set to a negative value. Fixes part of the enqueue queue length check. Signed-off-by: Felix Fietkau --- ubusd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubusd.h b/ubusd.h index f43b936..1913c66 100644 --- a/ubusd.h +++ b/ubusd.h @@ -62,7 +62,7 @@ struct ubus_client { struct list_head cmd_queue; struct list_head tx_queue; unsigned int txq_ofs; - unsigned int txq_len; + ssize_t txq_len; struct ubus_msg_buf *pending_msg; struct ubus_msg_buf *retmsg; -- 2.30.2